package com.aiboleepro.controller;

import com.aiboleepro.base.BaseMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author aiboleepro
 * @date 2018-08-29 下午11:51
 **/
@Slf4j
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("test1")
    public BaseMessage<String> test1(){
        log.info("测试的日志--info");
        log.error("测试的日志--error");
        log.debug("测试的日志--debug");
        log.warn("测试的日志--warn");
        return new BaseMessage<>(1000, "", null);
    }
}
